package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.entity.product.GrouponJoinEntity;
import com.dragon.modules.yuegou.enums.order.OrderRefundStatus;
import com.dragon.modules.yuegou.enums.order.OrderStatus;
import com.dragon.modules.yuegou.enums.product.GrouponJoinStatus;
import com.dragon.modules.yuegou.enums.product.GrouponStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 参团表模型类
 * 
 * @author pbuilder generated
 * @date 2019-09-28 14:32:38
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class GrouponJoin extends GrouponJoinEntity{

	@ApiModelProperty("拼团是否过期")
	private boolean isExpireGroupon;

	private LocalDateTime createdTime;

	public boolean isExpireGroupon() {
		return isExpireGroupon;
	}

	public void setExpireGroupon(boolean expireGroupon) {
		isExpireGroupon = expireGroupon;
	}

	@ApiModelProperty("订单退款状态")
	private OrderRefundStatus orderRefundStatus;
	public OrderRefundStatus getOrderRefundStatus() {
		return orderRefundStatus;
	}

	public void setOrderRefundStatus(OrderRefundStatus orderRefundStatus) {
		this.orderRefundStatus = orderRefundStatus;
	}

	@ApiModelProperty("拼团活动信息是否过期")
	private boolean isExpireGrouponInfo;
	public boolean isExpireGrouponInfo() {
		return isExpireGrouponInfo;
	}
	public void setExpireGrouponInfo(boolean expireGrouponInfo) {
		isExpireGrouponInfo = expireGrouponInfo;
	}

	@ApiModelProperty("拼团状态")
	private GrouponStatus grouponStatus;
	public GrouponStatus getGrouponStatus() {
		return grouponStatus;
	}

	public void setGrouponStatus(GrouponStatus grouponStatus) {
		this.grouponStatus = grouponStatus;
	}

	@ApiModelProperty("订单状态")
	private OrderStatus orderStatus;
	public OrderStatus getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(OrderStatus orderStatus) {
		this.orderStatus = orderStatus;
	}

	@ApiModelProperty("商品ID")
	private String goodsId;
	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	@ApiModelProperty("参团状态 0 待支付 1 待成团 2待使用 3已使用 4已过期 5已退款")
	private GrouponJoinStatus status;

	public GrouponJoinStatus getStatus() {
		return status;
	}

	public void setStatus(GrouponJoinStatus status) {
		this.status = status;
	}

	@ApiModelProperty("SKU")
	private Sku sku;
	public Sku getSku() {
		return sku;
	}


	public void setSku(Sku sku) {
		this.sku = sku;
	}

	@ApiModelProperty("图像")
	private String headImg;

	public String getHeadImg() {
		return headImg;
	}


	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	private String grouponName;

	public String getGrouponName() {
		return grouponName;
	}

	public void setGrouponName(String grouponName) {
		this.grouponName = grouponName;
	}

	/**
	 * 构造一个空参团表模型对象
	 */
	public GrouponJoin(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个参团表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public GrouponJoin(GrouponJoinEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个参团表模型对象
	 * 
	 * @param other 其它对象
	 */
	public GrouponJoin(GrouponJoin other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置主键ID
	 * 
	 * @param id 主键ID
	 * @return 当前对象
	 */
    public GrouponJoin id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public GrouponJoin busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 * @return 当前对象
	 */
    public GrouponJoin merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getGrouponInfoId() {
    	return grouponInfoId;
    }

    /**
	 * 设置拼团活动信息ID
	 * 
	 * @param grouponInfoId 拼团活动信息ID
	 * @return 当前对象
	 */
    public GrouponJoin grouponInfoId(String grouponInfoId) {
    	this.grouponInfoId = grouponInfoId;
    	return this;
    }

	@Override
	public String getGrouponId() {
    	return grouponId;
    }

    /**
	 * 设置团购ID
	 * 
	 * @param grouponId 团购ID
	 * @return 当前对象
	 */
    public GrouponJoin grouponId(String grouponId) {
    	this.grouponId = grouponId;
    	return this;
    }

	@Override
	public String getSkuId() {
    	return skuId;
    }

    /**
	 * 设置商品ID
	 * 
	 * @param skuId 商品ID
	 * @return 当前对象
	 */
    public GrouponJoin skuId(String skuId) {
    	this.skuId = skuId;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public GrouponJoin memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public Long getOwner() {
    	return owner;
    }

    /**
	 * 设置发起人id
	 * 
	 * @param owner 发起人id
	 * @return 当前对象
	 */
    public GrouponJoin owner(Long owner) {
    	this.owner = owner;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public GrouponJoin orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public Boolean getJoinType() {
    	return joinType;
    }

    /**
	 * 设置类型 0拼团 1单独购买
	 * 
	 * @param joinType 类型 0拼团 1单独购买
	 * @return 当前对象
	 */
    public GrouponJoin joinType(Boolean joinType) {
    	this.joinType = joinType;
    	return this;
    }

	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public GrouponJoin createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
